<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Simple Bookmarks - ${f:h(currentCollection.name)}</title>
<link rel="icon" href="../favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" media="all" href="../css/list.css">
</head>

<body>

<div id="article">

<table>
<c:forEach var="e" items="${bookmarks}" varStatus="s">
<tr class="${(s.index % 2 == 0)? "":"splite"}">
<td>
<div class="section-nowrap">
<a href="${e.url}">${f:h(e.title)}</a>
</div>
</td>
</tr>
</c:forEach>
</table>

</div>

<div id="aside">
<c:forEach var="e" items="${collections}" varStatus="s">
<c:if test="${f:h(e.key) == f:h(currentCollection.key)}">
<div class="section strong"><a href="./?c=${f:h(e.key)}">${f:h(e.name)}</a></div>
</c:if>
<c:if test="${f:h(e.key) != f:h(currentCollection.key)}">
<div class="section"><a href="./?c=${f:h(e.key)}">${f:h(e.name)}</a></div>
</c:if>
</c:forEach>
</div>

<div id="header">

<table style="width:100%;">
<tr>
<td style="text-align:left;padding-left:1em;line-height:1.5em;">
<a href="./management?c=${f:h(currentCollection.key)}" style="margin-right:1em;">Management</a>
<a href="./create?t=&amp;u=" style="margin-right:1em;">Add</a>
</td>
<td style="text-align:right;padding-right:1em;">
<span style="margin-right:1em;">${f:h(author)}</span>
<a href="../setting" style="margin-right:1em;">Set up</a>
<a href="${logout}">Log out</a>
</td>
</tr>
</table>

</div>

</body>

</html>
